import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {ValidateProvider} from "../../providers/validate/validate";

@IonicPage({
    segment: 'member/info/success',
    defaultHistory: ['MemberPage']
})
@Component({
    selector: 'page-register-success',
    templateUrl: 'register-success.html',
})
export class RegisterSuccessPage {

    constructor(
        public navCtrl: NavController,
        public navParams: NavParams,
        public validate: ValidateProvider
    ) {
    }

    //判断用户是否登录
    ionViewCanEnter() {
        return this.validate.checkLogin();
    }

    finish() {
        this.navCtrl.popToRoot();
    }

}
